﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace XNAGame_Lab1
{
    public class Form : VisibleGame
    {
        public Form(ContentManager content, string strTexture, Vector2 topleft, Vector2 size)
        {
            TopLeft = topleft;
            Size = size;
           
            Sprites = new List<MySprites2D>();
            Texture2D[] texture = new Texture2D[1];
            //for (int i = 0; i < nSprites; i++)
                texture[0] = content.Load<Texture2D>(strTexture);

                MySprites2D mySprite = new MySprites2D(texture, topleft) { Size = size };
            Sprites.Add(mySprite);
            this.nSprites = Sprites.Count;
            mySprite.Size = size;
        }    
    }
}
